var running_watch = (function () {
	var stage        //画布
		,shapes;   //画布内容
	_init = function(id){
		stage = new createjs.Stage(id);
		console.log(stage)
		shapes = _render();
		shapes.forEach(function(item,index){
			stage.addChild(item);
		})
		stage.update();
	};
	_render = function(){
		var s = [],res = [];
		s.push(_draw.cir(100,100,50))
		s.push(_draw.arc(100, 100, 50, 0, 1*Math.PI))
		s.forEach(function(item,index){
			res.push(new createjs.Shape(item))
		})
	    return res;
	};
	_draw = {
		cir:function(x,y,r){//圆形
			return new createjs.Graphics().ss(3).s("#ccc").arc(x, y, r, 0, 2*Math.PI,0);
		},
		arc:function(x,y,r,s,e){//圆弧
			return new createjs.Graphics().ss(10,0,0,1,null).s("#000").arc(x, y, r, s,e,0);
		}
	}
	_update = function(){
		this._render();
	};
	_resize = function(){
		
	};
	var self = {
		init:function(id){
			_init(id);
		},
		render:function(){
			_render();
		},
		update:function(){
			_update();
		},
		resize:function(){
			_resize();
		}
	}
	return self;
	
})()
